/*
 *  FontListBox.h
 *
 *  Created by David Rowland on 23/11/2008.
 *  Copyright 2008 UWE. All rights reserved.
 *	Code derived from the Juce demo project.
 *
 */

#include <juce/juce.h>

class FontListBox : public Component,
					public ListBoxModel
{
private:
	OwnedArray <Font> fonts;
	ListBox* listBox;
	
	TooltipWindow tooltipWindow;   // To add tooltips to an application

public:	
	FontListBox ();
	
	~FontListBox ();	
	
	void resized ();
	
	// implements the ListBoxModel method
	int getNumRows();
	
	// implements the ListBoxModel method
	void paintListBoxItem (int rowNumber,
						   Graphics& g,
						   int width, int height,
						   bool rowIsSelected);
	
	/// Returns the currently selected font name
	String getSelectedFont ();
};